import axios from 'axios';
import axios_config from './config.js';

// const url = `http://10.200.56.253:8081`; // 此处必须用IP地址，否则会导致promise error
// const url = `http://127.0.0.1:8081`;
const url = `http://106.14.123.171:8081`;

export default {
	getIndexData: () => axios.get(`${url}/index/getMore`),
	getIndexDataServer: (cookies) => axios_config.get({ url: `${url}/index/getMore`, params: {}, cookies })
};
